#!/bin/bash


mkdir /tmp/vars
mkdir /tmp/vars/libreoffice
mkdir /tmp/vars/kde
mkdir /tmp/vars/software-center
mkdir /tmp/vars/firefox
mkdir /tmp/vars/chrome-tmp
mkdir /tmp/vars/chrome
mkdir /tmp/vars/varlog
mkdir /tmp/vars/vartmp


rm -rf /home/rchbiu/.libreoffice/3/user/extensions/tmp
ln -s /tmp/vars/libreoffice /home/rchbiu/.libreoffice/3/user/extensions/tmp

rm -rf /home/rchbiu/.kde/tmp-ubuntu
ln -s /tmp/vars/kde /home/rchbiu/.kde/tmp-ubuntu

rm -rf /home/rchbiu/.cache/software-center/software-center-agent.db.tmp
ln -s /tmp/vars/software-center -rf /home/rchbiu/.cache/software-center/software-center-agent.db.tmp

rm -rf /home/rchbiu/.mozilla/firefox/qmiwc28h.default/Cache
ln -s /tmp/vars/firefox /home/rchbiu/.mozilla/firefox/qmiwc28h.default/Cache

rm -rf /home/rchbiu/.config/google-chrome/Temp
ln -s /tmp/vars/chrome-tmp /home/rchbiu/.config/google-chrome/Temp

rm -rf /home/rchbiu/.cache
ln -s /tmp/vars/chrome /home/rchbiu/.cache

#rm -rf /var/log
#ln -s /tmp/vars/varlog /var/log
# append: to
#none	/var/log	tmpfs   defaults    	0
# /etc/fstab

rm -rf /var/tmp
ln -s /tmp/vars/vartmp /var/tmp

